package ${package.ServiceImpl};

import ${package.Entity}.${entity};
import ${package.Mapper}.${table.mapperName};
import ${package.Service}.${table.serviceName};
import ${superServiceImplClassPackage};
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * ${table.comment!} 服务实现类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
@Service
<#if kotlin>
open class ${table.serviceImplName} : ${superServiceImplClass}<${table.mapperName}, ${entity}>(), ${table.serviceName} {

}
<#else>
public class ${table.serviceImplName} extends ${superServiceImplClass}<${table.mapperName}, ${entity}> implements ${table.serviceName} {

@Autowired
${table.mapperName} ${table.mapperName?uncap_first};

@Override
public boolean create${entity}(${entity} ${entity?lower_case}) {
return true;
}

@Override
public boolean delete${entity}(String bId) {
return true;
}

@Override
public boolean update${entity}(${entity} ${entity?lower_case}) {
return true;
}

@Override
public ${entity} select${entity}(String bId) {
return null;
}

@Override
public List<${entity}> list${entity}(${entity} ${entity?lower_case}) {
return null;
}
}
</#if>
